from django.db import models

# Create your models here.
# 导入
from django.db import models


class RankModel(models.Model):
    # objects = models.Manager()
    number = models.CharField(verbose_name='客户端号', primary_key=True,max_length=30)
    score = models.IntegerField(verbose_name='分数')

    class Meta:
        db_table = 'tb_ranks'
        verbose_name = '分数表'
        verbose_name_plural = verbose_name

    # 在 str 魔法方法中, 返回用户名称
    def __str__(self):
        return self.number
